/**
 * 作业 定时跳转
 * @type {HTMLElement}
 * @name 朱志文
 * @date 2019-12-9
 */
var secs = 3;
document.body.innerHTML = secs + "秒后跳转到" + "<a href='https://www.moe123.net/'>萌导航</a>";
;
setInterval(function () {
    if (secs == 0) {
            window.location.href = "https://www.moe123.net/";
    } else {
        document.body.innerHTML = (--secs) + "秒后跳转到" + "<a href='https://www.moe123.net/'>萌导航</a>";
    }
}, 1000);
